<ion-view view-title="{{title}}排名">
	<!--一定要手动加导航栏-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	<!--说明：旗舰店和品牌运营商是第一级，所以这2个要显示的内容是相同的。授权中心(第二级)、加盟店(第三级)、旗舰店这3个显示的内容有个别是不相同的，要控制显示一下-->
	<!--通过副标题来定位-->
	<div class="bar bar-subheader">
		<div class="row padding-0 font-large-my">
			<div class="col text-center" on-tap="orderBy_mix()" ng-class="{'assertive':order==1||order==2}">
				综合&nbsp;
				<i class="icon ion-ios-arrow-up icon-i-my paixu_top" ng-class="{'font-gray-my':order==1}" style="top: 5px;"></i>
				<i class="icon ion-ios-arrow-down icon-i-my paixu_bottom" ng-class="{'font-gray-my':order==2}" style="bottom: 7px;"></i>
			</div>
			<div class="col col-40 text-center" on-tap="orderBy_agent()" ng-class="{'assertive':order==9||order==10}" ng-if="store_type==1||store_type==2||store_type==3">
				<span ng-if="store_type==1||store_type==2">授权中心数量</span>
				<span ng-if="store_type==3">加盟店数量</span>&nbsp;
				<i class="icon ion-ios-arrow-up icon-i-my paixu_top" ng-class="{'font-gray-my':order==9}" style="top:5px;"></i>
				<i class="icon ion-ios-arrow-down icon-i-my paixu_bottom" ng-class="{'font-gray-my':order==10}" style="bottom: 7px;"></i>
			</div>
			<div class="col col-40 text-center" on-tap="orderBy_scale()" ng-class="{'assertive':order==15||order==16}" ng-if="store_type==4">
				经营规模&nbsp;
				<i class="icon ion-ios-arrow-up icon-i-my paixu_top" ng-class="{'font-gray-my':order==16}" style="top:5px;"></i>
				<i class="icon ion-ios-arrow-down icon-i-my paixu_bottom" ng-class="{'font-gray-my':order==15}" style="bottom: 7px;"></i>
			</div>
			<div class="col text-center" on-tap="openSort($event)">
				其他&nbsp;<i class="icon ion-navicon-round font-gray-my"></i>
			</div>
			<div class="col text-center" on-tap="rightSideMenu()">
				筛选<i class="iconfont icon-shaixuan"></i>
			</div>
		</div>
	</div>

	<!-- 侧边菜单 -->
	<ion-side-menus>
		<!-- 中间内容 -->
		<ion-side-menu-content>
			<ion-content class="has-header has-subheader">
				<!--描述：下拉刷新-->
				<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
				
				<div class="font-large-my font-gray-my text-center padding" ng-if="getlist.length==0||getlist==null">
					<i class="icon ion-sad-outline font-1rem-my"></i> 对不起,没有符合该条件的{{title}}.....
				</div>

				<!--描述：列表-->
				<div class="list">
					<li class="item padding-10" ng-repeat="obj in getlist" on-tap="on_showDetail(obj.store_id)">
						<div class="font-large-my item-input-inset padding-0">
							<img src="{{obj.store_pic}}" ng-if="obj.store_pic" width="40" height="40" />
							<img src="{{noImg}}" ng-if="obj.store_pic==''||obj.store_pic==null" height="40" width="40" /> &nbsp;{{obj.name}}
						</div>
						<div class="row padding-0 font-middle-my text-center">
							<div class="col">综合：{{obj.point}}</div>
							<div class="col">人气：{{obj.popularity}}</div>
							<div class="col">销量：{{obj.sales}}</div>
						</div>
						<div class="row padding-0 font-middle-my text-center">
							<div class="col">服务能力：{{obj.service}}</div>
							<div class="col">
								<span ng-if="store_type==1||store_type==2">授权数：{{obj.child_cnt}}</span>
								<span ng-if="store_type==3">加盟店数：{{obj.child_cnt}}</span>
								<span ng-if="store_type==4">经营规模：{{obj.scale}}</span>
							</div>
							<div class="col">品牌数：{{obj.brand}}</div>
						</div>
						<div class="row padding-0 font-middle-my text-center">
							<div class="col">投票数： {{obj.vote}}</div>
							<div class="col">&nbsp;</div>
							<div class="col">
								<span class="light border-radius-my font-small-my positive-bg right-zhang" style="padding: 0 5px;" on-tap="vote(obj.store_id,$event)">我要投票</span>
							</div>
						</div>
						<p class="font-middle-my">分享：
							<span on-tap="go_share(3,$index,$event)"><i class="iconfont icon icon-qq positive"></i></span>
							<span on-tap="go_share(1,$index,$event)"><i class="iconfont icon icon-weixin margin-left-10-my royal"></i></span>
						</p>
					</li>
				</div>

				<!--描述：当用户到达页脚或页脚附近时-->
				<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
			</ion-content>
		</ion-side-menu-content>
		
		<!-- 右侧菜单 -->
		<ion-side-menu side="right">
			<ion-content style="padding-top: 44px;">
				<div class="list">
						<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
								<div class="input-label">地区</div>
								<div class="input-value" ng-click="doSelectProvince()">{{input.region.name}}</div>
							</div>
							<div class="item item-input item-select" data-tap-disabled="true" style="padding:0 30px 0 15px;">
									<div class="input-label">类别</div>
									<div class="input-value" ng-click="doSelectCat1()">{{input.cat1.name}}</div>
								</div>
				</div>
				<div class="row">
					<div class="col"><button class="button button-full button-energized" on-tap="rightSideMenu()">取消</button></div>
					<div class="col"><button class="button button-full button-assertive" on-tap="data_init();rightSideMenu()">确定</button></div>
				</div>
			</ion-content>
		</ion-side-menu>
		
	</ion-side-menus>
</ion-view>